#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	for (int i = 3; i <= 100; i += 3)
	{
		if (i % 3 == 0)
			printf("%d ", i);
	}
}